<!DOCTYPE html>
<html lang="zh">

<head>
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta charset="utf-8">
    <title>Home</title>
    <meta name="keywords" />
    <meta name="description" />
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="./css/animate.min.css">
    <link rel="stylesheet" href="./css/aos.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/swiper.css">
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <div class="home">


        <div class="header">
            <div class="box">
                <div class="l">
                    <a href="./index.html" class="logo animated fadeInUp">
                        <img src="./images/logo.svg" alt="">
                    </a>
                </div>
               
                <div class="links">
                    <a href="index.html?scrollTo=md1" class="animated fadeInUp">
                        fence
                    </a>
                    <a href="index.html?scrollTo=md2" class="animated fadeInUp">
                        gate
                    </a>
                    <a href="index.html?scrollTo=md3" class="animated fadeInUp">
                        Tech Specs
                    </a>
                </div>
                <div class="r">
                    <a href="" class="bg_btn animated fadeInUp">
                        I WANT IT
                    </a>
                    <a href="dealer.html" class="bg_btn animated fadeInUp">
                        Be a Dealer
                    </a>
                </div>
            </div>
        </div>

        <div class="pheader">
            <div class="menu">
                <div class="l">
                    <a href="./index.html" target="_self" class="animated fadeInUpLeft">
                        <img src="./images/logo.svg" alt="">
                    </a>
                </div>
                <div class="navbox">
                    <div class="line"></div>
                    <div class="line"></div>
                    <div class="line"></div>
                </div>
            </div>
        </div>
        <div class="menuList">
            <div class="item">
                <div class="tb">
                    <a href="index.html?scrollTo=md1">fence</a>
                </div>
            </div>
            <div class="item">
                <div class="tb">
                    <a href="index.html?scrollTo=md2">gate</a>
                </div>
            </div>
            <div class="item">
                <div class="tb">
                    <a href="index.html?scrollTo=md3">Tech Specs</a>
                </div>
            </div>
            <div class="item">
                <div class="tb">
                    <a>I WANT IT</a>
                </div>
            </div>
            <div class="item">
                <div class="tb">
                    <a href="dealer.html">Be a Dealer</a>
                </div>
            </div>
        </div>


        <div class="dialog">
            <div class="close">
                <img src="./images/close.svg" alt="">
            </div>
            <div class="content">
                <video id="video" controls loop src=""></video>
            </div>
        </div>

        <div class="fixed_alert">
            <div class="mask_"></div>
            <div class="content">
                <div class="l">
                    <div class="move">
                        <div class="back">
                            <svg xmlns="http://www.w3.org/2000/svg" width="20" height="10" viewBox="0 0 20 10" fill="none">
                                <path d="M2.16667 4.39587H19.875V5.43754H1.95833L5.5 8.97921L4.77083 9.70837L0.0833321 5.02087L4.77083 0.333374L5.5 1.06254L2.16667 4.39587Z" fill="black"></path>
                            </svg>
                        </div>
                        <div class="title">
                            Mountable Channel
                        </div>
                        <div class="pic">
                            <img src="./images/h1.png" alt="">
                        </div>
                    </div>
                    <img src="./images/lo2.png" class="position" alt="">
                </div>
                <form action="javascript:;" class="r">
                    <div class="jump">
                        <div class="index_con">
                            <div class="p1">describe</div>
                            <div class="pick">
                                <p>
                                    With their environmental benefits, durability, and aesthetic appeal, WPC materials have become one of the fastest-growing building materials in recent years.
                                </p>
                                <p>&nbsp;</p>
                                <p>
                                    This trend presents a highly lucrative business opportunity for you.With their environmental benefits, durability, and aesthetic appeal, WPC materials have become one of the fastest-growing building materials in recent years. This trend presents a highly lucrative business opportunity for you.
                                </p>
                            </div>
                            <div class="bottom">
                                <div class="p1">parameter</div>
                                <div class="dis">
                                    <div class="list">parameter 01</div>
                                    <div class="list">parameter</div>
                                    <div class="list">parameter</div>
                                    <div class="list">parameter 04</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>

        <div class="banner">
            <video src="./videos/1.mp4" autoplay loop muted></video>
            <div class="text">
                <div class="t1 animated fadeInUp">
                    COMPOSITE<br>
                    FENCE AND ACCESSORIES
                </div>
                <div class=" animated fadeInUp" style="animation-delay: .2s">
                    <a href="" class="btn">
                        Join us
                    </a>
                </div>

            </div>
        </div>

        <div class="section0">
            <div class="fix">
              <div class="wrap">
                  <div class="title wow animated fadeInUp">our Product</div>
                  <div class="button">
                      <div class="circle">
                          <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25" fill="none">
                              <path d="M20.8333 12.3958H3.125V13.4374H21.0417L17.5 16.9791L18.2292 17.7083L22.9167 13.0208L18.2292 8.33325L17.5 9.06242L20.8333 12.3958Z" fill="white"/>
                          </svg>
                      </div>
                      <div class="circle">
                          <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25" fill="none">
                              <path d="M20.8333 12.3958H3.125V13.4374H21.0417L17.5 16.9791L18.2292 17.7083L22.9167 13.0208L18.2292 8.33325L17.5 9.06242L20.8333 12.3958Z" fill="white"/>
                          </svg>
                      </div>
                  </div>
                  <div class=" wow animated fadeInUp" style="animation-delay: .2s">
                      <div class="content wrap_x">
                          <div class="item">
                              <div class="l">
                                  <div class="tran">
                                      <div class="p1">Horizontal Fence</div>
                                      <div class="pick">
                                          Our horizontal composite fence combines modern design with durable performance. Made from eco-friendly composite materials, it offers the look of natural wood without maintenance.
                                      </div>
                                  </div>
                                  <div class="eng">fence</div>
                              </div>
                              <div class="r" data-total-images="50"></div>
                              <div class="r2" style="display: none;">
                                  <img src="./images/pro/1/1.webp" alt="">
                              </div>
                          </div>
                          <div class="item">
                              <div class="l">
                                  <div class="tran">
                                      <div class="p1">Vertical Fence</div>
                                      <div class="pick">
                                          Our vertical composite fence combines modern design with durable performance. Made from eco-friendly composite materials, it offers the look of natural wood without maintenance.
                                      </div>
                                  </div>
                                  <div class="eng">fence</div>
                              </div>
                              <div class="r" data-total-images="50"></div>
                              <div class="r2" style="display: none;">
                                <img src="./images/pro/2/1.webp" alt="">
                              </div>
                          </div>
                      </div>
                  </div>
              </div>
            </div>
        </div>

        <div class="section1">
            <div class="wrap">
                <video src="./videos/2.mp4" muted autoplay loop class="common_bg"></video>
                <h1 class="wow animated fadeInUp">Make it yours</h1>
                <div class="p1 wow animated fadeInUp" style="animation-delay: .2s">High-quality customized  services</div>
                <div class="p2 wow animated fadeInUp" style="animation-delay: .3s">
                    Our fence system is designed to truly become your own, blending seamlessly into your lifestyle and adding fun and happiness to your life! You can personalize it with decorative boards to increase height and enhance aesthetics, or replace the post caps with solar-powered LED lights for both beauty and functionality.
                </div>
            </div>
        </div>

        <div class="section2" id="md1">
            <div class="title wow animated fadeInUp">Configure your Fence</div>
            <div class="headline wow animated fadeInUp">product display</div>
            <div class="content">
                <div class="img wow animated fadeInUp">
                    <img src="./images/slide.png" class="0_0_0_0_0 on" alt="">
                    <!-- 后台这里一直img排下去 类名就是有多少个组合就有多少个类名 --->
<!--                    0_0_0_0_0 是默认第一个组合才有的-->
                </div>
                <div class="con_jump wow animated fadeInUp" style="animation-delay: .2s">
                    <div class="button" style="display: none;">
                        <img src="./images/left.svg" alt="">
                        <img src="./images/left.svg" alt="">
                    </div>
                    <div class="conSwiper swiper-container">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide">
                                <div class="matter">
                                    <div class="p1">System</div>
                                    <div class="dis">
                                        <div class="item on"> horizontal</div>
                                        <div class="item">vertical</div>
                                    </div>
                                </div>
                                <div class="matter">
                                    <div class="p1">Foundation</div>
                                    <div class="dis">
                                        <div class="item on">Soil<br>
                                            （No need for base）</div>
                                        <div class="item">Cement<br>
                                            （requires a base） </div>
                                    </div>
                                </div>
                                <div class="matter">
                                    <div class="p1">board</div>
                                    <div class="dis">
                                        <div class="item on">Teak color 6 inch</div>
                                        <div class="item">ancient color 6 inch </div>
                                        <div class="item">charcoalcolor 6 inch </div>
                                        <div class="item">walnut color 6 inch </div>
                                        <div class="item">redwood color 6 inch </div>
                                    </div>
                                </div>
                                <div class="matter">
                                    <div class="p1">top screen</div>
                                    <div class="dis top_screen">
                                        <div class="item on">
                                            <div class="it_line"></div>
                                        </div>
                                        <div class="item">
                                            <img src="./images/t1.png" alt="">
                                            <img src="./images/xz1.png" alt="">
                                        </div>
                                        <div class="item">
                                            <img src="./images/t2.png" alt="">
                                            <img src="./images/xz2.png" alt="">
                                        </div>
                                    </div>
                                </div>
                                <div class="matter">
                                    <div class="p1">Grading</div>
                                    <div class="dis">
                                        <div class="item on">residential</div>
                                        <div class="item">commerclal </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

            </div>
        </div>

        <div class="section3">
            <div class="title wow animated fadeInUp">Key fittings</div>
            <div class="content wow animated fadeInUp">
                <div class="keySwiper swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1.png" class="pic" alt="">
                                <video src="./videos/3.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">Mountable Channel</div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1.png" class="pic" alt="">
                                <video src="./videos/3.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Adjustable Angle Channel<br>
                                    Connectors
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1.png" class="pic" alt="">
                                <video src="./videos/3.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Adjustable Angle Post
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1.png" class="pic" alt="">
                                <video src="./videos/3.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Spacer
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1.png" class="pic" alt="">
                                <video src="./videos/3.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Mountable Channel
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="swiper-pagination"></div>
            </div>
        </div>

        <div class="section4  s4_0">
            <div class="title wow animated fadeInUp">Installation Video</div>
            <div class="content wow animated fadeInUp" style="animation-delay: .2s">
                <video id="video_0" src="./videos/in.mp4" muted   class="common_bg"></video>
                <div class="play" data-url="./videos/in.mp4">
                    <svg xmlns="http://www.w3.org/2000/svg" width="18" height="21" viewBox="0 0 18 21" fill="none">
                        <path d="M18 10.5L0.75 20.4593V0.540708L18 10.5Z" fill="white"/>
                    </svg>
                </div>
            </div>
        </div>

        <div class="section2" id="md2">
            <div class="title wow animated fadeInUp">Configure your gate</div>
            <div class="headline wow animated fadeInUp">product display</div>
            <div class="content">
                <div class="img wow animated fadeInUp">
                    <img src="./images/slide2.png" class="0_0_0 on" alt="">
                </div>
                <div class="con_jump wow animated fadeInUp" style="animation-delay: .2s">
                    <div class="button" style="display: none;">
                        <img src="./images/l.png" alt="">
                        <img src="./images/left.png" alt="">
                    </div>
                    <div class="conSwiper swiper-container">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide">
                                <div class="matter">
                                    <div class="p1">Size</div>
                                    <div class="dis">
                                        <div class="item on">six feet tall</div>
                                        <div class="item">seven feet tall</div>
                                    </div>
                                </div>
                                <div class="matter">
                                    <div class="p1">Lock</div>
                                    <div class="dis">
                                        <div class="item all on">Key lock</div>
                                        <div class="item all">MECHANICAL COMBINATION LOCK </div>
                                    </div>
                                </div>
                                <div class="matter">
                                    <div class="p1">Infill Panels</div>
                                    <div class="dis">
                                        <div class="item on">metal<br>
                                            （pre-made）</div>
                                        <div class="item">WPC<br>
                                            （custerm made） </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <div class="section3">
            <div class="title wow animated fadeInUp">Key fittings</div>
            <div class="content wow animated fadeInUp">
                <div class="keySwiper swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1_.png" class="pic" alt="">
                                <video src="./videos/4.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">Heavy Duty Hinges</div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1_.png" class="pic" alt="">
                                <video src="./videos/4.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Latch Bolt
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1_.png" class="pic" alt="">
                                <video src="./videos/4.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Strike Hole
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1_.png" class="pic" alt="">
                                <video src="./videos/4.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Door Stopper
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="img">
                                <img src="./images/p1_.png" class="pic" alt="">
                                <video src="./videos/4.mp4" autoplay muted loop class="video animated fadeIn"></video>
                            </div>
                            <div class="text">
                                <div class="p1">
                                    Heavy Duty Hinges
                                </div>
                                <a href="" class="more">more</a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="swiper-pagination"></div>
            </div>
        </div>

        <div class="section4 s4_1">
            <div class="title wow animated fadeInUp">Installation Video</div>
            <div class="content wow animated fadeInUp" style="animation-delay: .2s">
                <video id="video_1" src="./videos/in2.mp4" muted   class="common_bg"></video>
                <div class="play" data-url="./videos/in2.mp4">
                    <svg xmlns="http://www.w3.org/2000/svg" width="18" height="21" viewBox="0 0 18 21" fill="none">
                        <path d="M18 10.5L0.75 20.4593V0.540708L18 10.5Z" fill="white"/>
                    </svg>
                </div>
            </div>
        </div>

        <div class="section5">
            <div class="title wow animated fadeInUp">Product advantages</div>
            <div class="content">
                <div class="item wow animated fadeInUp">
                    <img src="./images/it1.png" class="img" alt="">
                    <img src="./images/it1.png" class="img img2" alt="">
                    <div class="position">
                        <div class="icon">
                            <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none">
                                <path d="M22.3113 19.2728C20.3067 17.4109 17.9962 15.6932 15.4431 14.1667C11.1056 11.5736 7.56252 10.4233 7.41346 10.3762C7.14117 10.2888 6.85393 10.2577 6.56925 10.2849C6.28458 10.3121 6.00842 10.397 5.7576 10.5344C5.50662 10.6716 5.28619 10.8584 5.1097 11.0834C4.93322 11.3085 4.80438 11.5672 4.73104 11.8436C4.69096 11.9948 3.74736 15.5983 3.58986 20.6495C3.49705 23.6231 3.69674 26.4953 4.1819 29.1876C4.79643 32.5949 5.87432 35.7238 7.38533 38.4878C8.89635 41.2518 10.9488 43.847 13.4864 46.2032C15.491 48.0651 17.8014 49.7828 20.3545 51.3093C24.6921 53.9024 28.2351 55.0527 28.3842 55.0998C28.5944 55.1673 28.8117 55.2004 29.0282 55.2004C29.3784 55.2004 29.7271 55.1132 30.04 54.9416C30.291 54.8045 30.5114 54.6177 30.6879 54.3926C30.8644 54.1675 30.9932 53.9089 31.0666 53.6324C31.1067 53.4813 32.0503 49.8777 32.2078 44.8265C32.3006 41.853 32.1009 38.9807 31.615 36.2884C31.0005 32.8811 29.9226 29.7522 28.4116 26.9882C26.9006 24.2242 24.8481 21.629 22.3113 19.2728ZM27.9946 44.5874C27.9299 46.8494 27.6874 48.8069 27.456 50.2152C26.1461 49.6499 24.3672 48.7977 22.4273 47.632C18.8702 45.4931 14.0151 41.8185 11.0866 36.4621C8.15736 31.1057 7.68416 25.0356 7.80229 20.8865C7.86697 18.6245 8.10955 16.6663 8.34018 15.2587C9.6501 15.824 11.429 16.6762 13.3689 17.842C16.926 19.9809 21.7811 23.6554 24.7096 29.0118C27.6396 34.3689 28.1135 40.439 27.9946 44.5874ZM45.577 40.5641C43.3108 43.0244 40.286 45.0142 36.5868 46.4802C35.504 46.9091 34.9739 48.1354 35.4028 49.2182C35.7311 50.0465 36.5249 50.5513 37.3645 50.5513C37.6232 50.5513 37.8862 50.5035 38.1407 50.4023C42.434 48.7014 45.9799 46.353 48.6799 43.423C50.5178 41.4276 52.0696 39.0384 53.2917 36.3208C54.2549 34.1784 55.0171 31.8271 55.5564 29.3324C56.4726 25.0954 56.4339 21.892 56.4318 21.7577C56.4273 21.4718 56.3647 21.1898 56.2478 20.9288C56.1309 20.6678 55.9622 20.4334 55.7518 20.2396C55.5415 20.0459 55.294 19.8969 55.0244 19.8018C54.7547 19.7067 54.4685 19.6674 54.1832 19.6863C54.0489 19.6954 50.8532 19.9183 46.7055 21.1776C44.2635 21.9194 41.9819 22.8707 39.926 24.0056C37.3174 25.4456 35.0631 27.1872 33.2245 29.1827C32.4349 30.0398 32.4897 31.3736 33.3461 32.1632C34.2032 32.9528 35.5371 32.898 36.3267 32.0416C39.7938 28.2784 44.4956 26.2689 47.8291 25.2459C49.4632 24.7445 50.9404 24.4232 52.0844 24.2207C51.9476 25.6747 51.7224 27.119 51.4101 28.5456C50.6634 31.9509 49.0448 36.801 45.577 40.5641Z" fill="white"/>
                              </svg>
                        </div>
                        <div class="text">Eco-friendly</div>
                    </div>
                </div>
                <div class="item wow animated fadeInUp" style="animation-delay: .2s">
                    <img src="./images/it2.png" class="img" alt="">
                    <img src="./images/it2.png" class="img img2" alt="">
                    <div class="position">
                        <div class="icon">
                            <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none">
                                <path d="M49.566 11.2437L30.432 4.79973C30.0584 4.67353 29.6536 4.67353 29.28 4.79973L10.146 11.2887C9.78945 11.4092 9.47962 11.6383 9.26006 11.944C9.04051 12.2496 8.92228 12.6164 8.922 12.9927V31.8507C8.922 46.6017 28.095 54.4107 28.911 54.7347C29.1412 54.8268 29.3879 54.8703 29.6357 54.8626C29.8835 54.8548 30.127 54.796 30.351 54.6897C31.2 54.2997 50.79 44.8257 50.79 32.2377V12.9477C50.7897 12.5714 50.6715 12.2046 50.4519 11.899C50.2324 11.5933 49.9225 11.3642 49.566 11.2437ZM47.19 32.2437C47.19 41.3817 32.916 49.3257 29.52 51.0837C26.19 49.5837 12.522 42.7197 12.522 31.8567V14.2827L29.859 8.39973L47.19 14.2437V32.2437Z" fill="white"/>
                                <path d="M28.056 19.3262V26.2022H21.183V29.8022H28.056V36.6752H31.656V29.8022H38.532V26.2022H31.656V19.3262H28.056Z" fill="white"/>
                              </svg>
                        </div>
                        <div class="text">Termite-resistant</div>
                    </div>
                </div>
                <div class="item wow animated fadeInUp" style="animation-delay: .3s">
                    <img src="./images/it3.png" class="img" alt="">
                    <img src="./images/it3.png" class="img img2" alt="">
                    <div class="position">
                        <div class="icon">
                            <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none">
                                <g clip-path="url(#clip0_1619_347)">
                                  <path d="M46.9591 16.9417C45.2554 16.9372 43.5675 17.2697 41.9917 17.92C40.416 18.5704 38.9833 19.526 37.7754 20.7322C36.5675 21.9384 35.6081 23.3717 34.952 24.9501C34.2959 26.5286 33.9559 28.2213 33.9514 29.9317C33.9643 32.1852 34.5696 34.3953 35.706 36.3387L24.534 44.533C23.8164 43.0752 22.7777 41.8006 21.4967 40.8056C20.2156 39.8106 18.7258 39.1214 17.1401 38.7902V29.8459C20.8788 29.3042 24.2744 27.3609 26.6435 24.4071C29.0126 21.4533 30.1792 17.7083 29.9087 13.9257C29.6382 10.1432 27.9506 6.6039 25.1855 4.02015C22.4204 1.43641 18.7831 0 15.0055 0C11.228 0 7.59072 1.43641 4.82562 4.02015C2.06052 6.6039 0.372899 10.1432 0.102382 13.9257C-0.168135 17.7083 0.998537 21.4533 3.3676 24.4071C5.73667 27.3609 9.13227 29.3042 12.871 29.8459V38.7859C10.8925 39.1913 9.0692 40.1519 7.61281 41.5561C6.15641 42.9604 5.12672 44.7505 4.64333 46.7188C4.15994 48.687 4.24269 50.7526 4.88196 52.6755C5.52123 54.5984 6.69079 56.2998 8.25481 57.5821C9.81883 58.8644 11.7131 59.6749 13.7177 59.9195C15.7222 60.1642 17.7548 59.8329 19.5792 58.9641C21.4037 58.0954 22.9453 56.7248 24.0248 55.0116C25.1044 53.2985 25.6777 51.313 25.6781 49.2858C25.6781 49.1915 25.6567 49.1058 25.6525 49.0115L38.4211 39.6559C39.9905 41.0562 41.8757 42.0523 43.9141 42.5584C45.9524 43.0645 48.0828 43.0653 50.1215 42.5607C52.1603 42.0562 54.0462 41.0615 55.6167 39.6623C57.1872 38.2631 58.3952 36.5015 59.1366 34.5293C59.8779 32.5571 60.1303 30.4334 59.8721 28.3415C59.6139 26.2495 58.8527 24.252 57.6542 22.5211C56.4558 20.7902 54.856 19.3779 52.9928 18.4059C51.1295 17.4339 49.0588 16.9314 46.9591 16.9417ZM4.26899 15.0603C4.26899 12.9413 4.89493 10.8698 6.06764 9.10783C7.24035 7.34589 8.90717 5.97262 10.8573 5.16169C12.8075 4.35076 14.9534 4.13858 17.0236 4.55199C19.0939 4.9654 20.9955 5.98583 22.4881 7.48424C23.9807 8.98265 24.9972 10.8917 25.409 12.9701C25.8208 15.0484 25.6094 17.2027 24.8016 19.1605C23.9939 21.1182 22.6259 22.7916 20.8708 23.9689C19.1158 25.1462 17.0523 25.7745 14.9415 25.7745C12.111 25.7745 9.39639 24.6457 7.3949 22.6364C5.39342 20.6271 4.26899 17.9019 4.26899 15.0603ZM15.0568 55.7743C13.787 55.7701 12.5469 55.3882 11.4932 54.6769C10.4394 53.9656 9.61923 52.9568 9.13622 51.7778C8.65321 50.5989 8.52902 49.3027 8.77933 48.053C9.02964 46.8032 9.64322 45.6559 10.5426 44.756C11.442 43.8561 12.5868 43.244 13.8325 42.9968C15.0782 42.7497 16.369 42.8787 17.5417 43.3675C18.7145 43.8563 19.7166 44.683 20.4217 45.7432C21.1267 46.8034 21.503 48.0496 21.503 49.3244C21.5013 50.1734 21.333 51.0139 21.0076 51.7976C20.6823 52.5813 20.2063 53.293 19.6069 53.892C19.0074 54.491 18.2963 54.9656 17.5141 55.2885C16.7319 55.6115 15.894 55.7766 15.0482 55.7743H15.0568ZM47.0402 38.4344C45.3689 38.4285 43.7367 37.9256 42.3499 36.9891C40.9632 36.0526 39.8839 34.7246 39.2484 33.1727C38.6129 31.6209 38.4496 29.9148 38.7793 28.2699C39.109 26.625 39.9168 25.115 41.1007 23.9307C42.2846 22.7463 43.7915 21.9407 45.4312 21.6156C47.0708 21.2904 48.7697 21.4603 50.3132 22.1037C51.8568 22.7472 53.1758 23.8354 54.1038 25.2309C55.0317 26.6264 55.527 28.2666 55.527 29.9445C55.5253 31.0622 55.3041 32.1686 54.8761 33.2004C54.4481 34.2322 53.8217 35.1692 53.0327 35.9577C52.2436 36.7462 51.3075 37.3708 50.2778 37.7958C49.2481 38.2208 48.145 38.4378 47.0316 38.4344H47.0402Z" fill="white"/>
                                </g>
                                <defs>
                                  <clipPath id="clip0_1619_347">
                                    <rect width="60" height="60" fill="white"/>
                                  </clipPath>
                                </defs>
                              </svg>
                        </div>
                        <div class="text">
                            Durable and<br>
                            Wear-resistant
                        </div>
                    </div>
                </div>
                <div class="item wow animated fadeInUp" style="animation-delay: .4s">
                    <img src="./images/it4.png" class="img" alt="">
                    <img src="./images/it4.png" class="img img2" alt="">
                    <div class="position">
                        <div class="icon">
                            <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none">
                                <path d="M55.1493 45.3426C55.0787 44.9839 54.9046 44.6414 54.6266 44.3636L38.6586 28.4523C39.3059 26.8063 39.7192 25.0427 39.8577 23.2025C39.8867 23.0701 39.9025 22.9328 39.9025 22.7918L39.8905 22.665C39.9032 22.3874 39.9099 22.1083 39.9099 21.8276C39.9099 11.8242 31.8002 3.71484 21.7966 3.71484C19.2171 3.71484 16.7641 4.25508 14.5431 5.22714C14.1645 5.27888 13.7986 5.44461 13.5003 5.72396C13.2873 5.83387 13.0766 5.94749 12.8686 6.06549L13.0868 6.28368C12.742 6.99414 12.8641 7.8741 13.4541 8.46422L22.0019 17.0652L17.0902 22.0152L8.52313 13.3953C7.90399 12.7754 6.96395 12.6719 6.23647 13.0839L6.0365 12.8966C5.91113 13.1174 5.79067 13.3413 5.67447 13.5677C5.50184 13.7873 5.3839 14.0358 5.32143 14.2951C4.27088 16.589 3.6843 19.1396 3.6843 21.8276C3.6843 31.8312 11.7931 39.9404 21.7966 39.9404C24.0877 39.9404 26.279 39.5143 28.2965 38.7381L42.89 53.2796C43.2711 53.77 43.7133 54.2104 44.2051 54.59L44.3028 54.6874C44.5144 54.8993 44.7636 55.0507 45.0289 55.142C46.1036 55.7604 47.3499 56.1142 48.6788 56.1142C52.7262 56.1142 56.0074 52.833 56.0074 48.7856C56.0074 47.5411 55.6967 46.3692 55.1493 45.3426ZM48.6826 52.3509C48.0136 52.3509 47.3878 52.1661 46.853 51.8453L45.6316 50.6282C45.5839 50.5494 45.5397 50.4683 45.4981 50.3856L41.6851 46.5939C41.6769 46.6197 41.6682 46.6453 41.6604 46.6712L31.8501 36.8956C31.8558 36.8918 31.8615 36.8882 31.8672 36.8844L29.1086 34.1258C26.9561 35.4117 24.4396 36.1514 21.75 36.1514C13.8135 36.1514 7.37881 29.7171 7.37881 21.7806C7.37881 20.5176 7.54202 19.2927 7.84817 18.1257L15.3331 25.6571C15.3845 25.7086 15.4384 25.7561 15.4939 25.8004C15.5615 25.9006 15.6392 25.9959 15.7278 26.0845C16.4727 26.8294 17.6793 26.8294 18.4242 26.0845L26.0238 18.4264C26.7686 17.6816 26.7686 16.4744 26.0238 15.7296C25.9766 15.6824 25.9276 15.6384 25.877 15.5972C25.8127 15.5043 25.7397 15.4156 25.657 15.3329L18.2178 7.84796C19.348 7.56208 20.5311 7.40948 21.7501 7.40948C29.6867 7.40948 36.1204 13.8438 36.1204 21.7807C36.1204 21.9281 36.1174 22.0747 36.1129 22.221C36.0863 22.3482 36.072 22.4799 36.072 22.615L36.0864 22.7664C35.9826 24.2956 35.6399 25.7592 35.095 27.12L35.3336 27.2842C35.228 27.354 35.1278 27.4354 35.0349 27.5284C34.2899 28.2732 34.2899 29.4804 35.0349 30.2253L44.1473 39.3051L44.1633 39.288L45.8418 40.9935L46.6063 41.7552C46.6025 41.7564 46.5988 41.7576 46.595 41.7588L50.5022 45.7288C50.5946 45.7839 50.6847 45.8426 50.7716 45.9056L51.5594 46.6906C51.9896 47.2793 52.2441 48.0044 52.2441 48.7892C52.244 50.7559 50.6491 52.3509 48.6826 52.3509Z" fill="white"/>
                              </svg>
                        </div>
                        <div class="text">
                            Maintenance<br>
                            -free
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="section6" id="md3">
            <div class="title wow animated fadeInUp">Tech Specs</div>
            <div class="content wow animated fadeInUp" style="animation-delay: .2s">
                <div class="next">
                    <svg t="1729428546616" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6445" width="200" height="200"><path d="M510.72 558.464L464.298667 512l46.464-46.464L762.965333 213.333333l46.464 46.464L557.184 512l252.202667 252.202667L762.965333 810.666667z m-250.965333 0L213.333333 512l46.464-46.464L512 213.333333l46.464 46.464L306.218667 512l252.202666 252.202667L512 810.666667z" p-id="6446" fill="#ffffff"></path></svg>
                </div>
                <div class="techSwiper swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide">
                            <div class="fist">
                                <div class="matter">
                                    <h1>Horizontal System</h1>
                                    <div class="p1">Specification</div>
                                    <table>
                                        <tr>
                                            <td>Feature</td>
                                            <td>Horizontal Fence</td>
                                        </tr>
                                        <tr>
                                            <td>Height</td>
                                            <td>up to 8 ft</td>
                                        </tr>
                                        <tr>
                                            <td>Width</td>
                                            <td>6 Ft</td>
                                        </tr>
                                        <tr>
                                            <td>Infill compatibility</td>
                                            <td>All Modern Yard fence boards</td>
                                        </tr>
                                        <tr>
                                            <td>Estimated Assemble Time</td>
                                            <td>5 mins per section</td>
                                        </tr>
                                        <tr>
                                            <td>Wind Resistance</td>
                                            <td>Up to 115 miles/hour</td>
                                        </tr>
                                        <tr>
                                            <td>Warranty</td>
                                            <td>15 ～ 25 years</td>
                                        </tr>
                                        <tr>
                                            <td>Installable Terrains</td>
                                            <td>flat, slop, angel spacer</td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="matter">
                                    <h1>Vertical System</h1>
                                    <div class="p1">Specification</div>
                                    <table>
                                        <tr>
                                            <td>Feature</td>
                                            <td>Horizontal Fence</td>
                                        </tr>
                                        <tr>
                                            <td>Height</td>
                                            <td>up to 8 ft</td>
                                        </tr>
                                        <tr>
                                            <td>Width</td>
                                            <td>6 Ft</td>
                                        </tr>
                                        <tr>
                                            <td>Infill compatibility</td>
                                            <td>All Modern Yard fence boards</td>
                                        </tr>
                                        <tr>
                                            <td>Estimated Assemble Time</td>
                                            <td>5 mins per section</td>
                                        </tr>
                                        <tr>
                                            <td>Wind Resistance</td>
                                            <td>Up to 115 miles/hour</td>
                                        </tr>
                                        <tr>
                                            <td>Warranty</td>
                                            <td>15 ～ 25 years</td>
                                        </tr>
                                        <tr>
                                            <td>Installable Terrains</td>
                                            <td>flat, slop, angel spacer</td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="last">
                                <div class="button">
                                    <a href="" class="more">Catalog Download</a>
                                    <a href="" class="more">Installation Manua download</a>
                                </div>
                                <div class="button">
                                    <a href="" class="more">Catalog Download</a>
                                    <a href="" class="more">Installation Manua download</a>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide">
                            <div class="fist">
                                <div class="matter">
                                    <h1>Horizontal System</h1>
                                    <div class="p1">Specification</div>
                                    <table>
                                        <tr>
                                            <td>Feature</td>
                                            <td>Horizontal Fence</td>
                                        </tr>
                                        <tr>
                                            <td>Height</td>
                                            <td>up to 8 ft</td>
                                        </tr>
                                        <tr>
                                            <td>Width</td>
                                            <td>6 Ft</td>
                                        </tr>
                                        <tr>
                                            <td>Infill compatibility</td>
                                            <td>All Modern Yard fence boards</td>
                                        </tr>
                                        <tr>
                                            <td>Estimated Assemble Time</td>
                                            <td>5 mins per section</td>
                                        </tr>
                                        <tr>
                                            <td>Wind Resistance</td>
                                            <td>Up to 115 miles/hour</td>
                                        </tr>
                                        <tr>
                                            <td>Warranty</td>
                                            <td>15 ～ 25 years</td>
                                        </tr>
                                        <tr>
                                            <td>Installable Terrains</td>
                                            <td>flat, slop, angel spacer</td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="matter">
                                    <h1>Vertical System</h1>
                                    <div class="p1">Specification</div>
                                    <table>
                                        <tr>
                                            <td>Feature</td>
                                            <td>Horizontal Fence</td>
                                        </tr>
                                        <tr>
                                            <td>Height</td>
                                            <td>up to 8 ft</td>
                                        </tr>
                                        <tr>
                                            <td>Width</td>
                                            <td>6 Ft</td>
                                        </tr>
                                        <tr>
                                            <td>Infill compatibility</td>
                                            <td>All Modern Yard fence boards</td>
                                        </tr>
                                        <tr>
                                            <td>Estimated Assemble Time</td>
                                            <td>5 mins per section</td>
                                        </tr>
                                        <tr>
                                            <td>Wind Resistance</td>
                                            <td>Up to 115 miles/hour</td>
                                        </tr>
                                        <tr>
                                            <td>Warranty</td>
                                            <td>15 ～ 25 years</td>
                                        </tr>
                                        <tr>
                                            <td>Installable Terrains</td>
                                            <td>flat, slop, angel spacer</td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="last">
                                <div class="button">
                                    <a href="" class="more">Catalog Download</a>
                                    <a href="" class="more">Installation Manua download</a>
                                </div>
                                <div class="button">
                                    <a href="" class="more">Catalog Download</a>
                                    <a href="" class="more">Installation Manua download</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <div class="section7">
           <div class="content wow animated fadeInUp">
               <div class="img">
                   <img src="./images/last.png" alt="">
               </div>
               <div class="color">
                   <h1 class=" wow animated fadeInUp">
                       how to become <br>
                       a dealer
                   </h1>
                   <div class="pick wow animated fadeInUp" style="animation-delay: .1s">
                       Now, become our distributor and embark on the journey of wealth together with us! We offer high-quality products, all-round support and a broad market space, allowing you to easily start your sales journey.From product supply to marketing promotion, worry-free throughout the entire process
                   </div>
                   <div class=" wow animated fadeInUp" style="animation-delay: .2s">
                       <a href="" class="more">Join us now</a>
                   </div>
               </div>
           </div>
        </div>

        <div class="foot">
            <div class="dom1">
                <div class="l">
                    <div class="pic">
                        <img src="./images/flogo.svg" alt="">
                    </div>
                    <div class="des">
                        <p>Phone：(510) 695-2700</p>
                        <p>E-mail：Service@MyModernYard.com</p>
                    </div>
                </div>
                <div class="r">
                    <div class="item">
                        <a href="">product</a>
                        <a href="">Make it yours</a>    
                        <a href="">Product advantages</a>
                        <a href="">Tech Specs</a>
                    </div>
                    <div class="item">
                        <a href="">Be a dealer</a>
                        <a href="">Contact us</a>    
                    </div>
                </div>
            </div>
            <div class="dom2">
                <div class="l">
                    MODERN YARD @ 2024 All rights reserved.
                </div>
                <div id="goTop">
                    <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 25 25" fill="none">
                        <path d="M12.3958 4.16667V21.875H13.4375V3.95833L16.9792 7.5L17.7083 6.77083L13.0208 2.08333L8.33334 6.77083L9.06251 7.5L12.3958 4.16667Z" fill="white"/>
                      </svg>
                </div>
                <div class="share">
                    <a href="">
                        <svg xmlns="http://www.w3.org/2000/svg" width="19" height="20" viewBox="0 0 19 20" fill="none">
                            <path d="M16.12 6.81966C16.0421 12.9717 12.2858 17.1855 6.67846 17.4501C4.36607 17.561 2.69082 16.7787 1.23289 15.8087C2.94196 16.0943 5.06119 15.3789 6.19461 14.3627C4.51936 14.192 3.52751 13.299 3.06341 11.8618C3.5475 11.9494 4.05748 11.9262 4.51737 11.8242C3.00567 11.2942 1.92616 10.3157 1.87039 8.26525C2.2946 8.46753 2.73683 8.65767 3.32435 8.69516C2.19301 8.0212 1.35644 5.55751 2.31458 3.92837C3.99367 5.85587 6.0134 7.42876 9.32986 7.64154C8.49722 3.91377 13.2139 1.8923 15.188 4.39774C16.0225 4.22866 16.7017 3.89708 17.3551 3.53618C17.0862 4.40187 16.5683 5.00684 15.9369 5.49081C16.63 5.39283 17.2434 5.21547 17.7675 4.94428C17.4424 5.65148 16.7316 6.28566 16.12 6.81966Z" fill="white"/>
                          </svg>
                    </a>
                    <a href="">
                        <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19" fill="none">
                            <path d="M16.3281 2.07812H2.67188C2.34346 2.07812 2.07812 2.34346 2.07812 2.67188V16.3281C2.07812 16.6565 2.34346 16.9219 2.67188 16.9219H16.3281C16.6565 16.9219 16.9219 16.6565 16.9219 16.3281V2.67188C16.9219 2.34346 16.6565 2.07812 16.3281 2.07812ZM14.6137 6.41064H13.428C12.4984 6.41064 12.3185 6.85225 12.3185 7.50166V8.93223H14.5376L14.2481 11.1718H12.3185V16.9219H10.0047V11.1736H8.06943V8.93223H10.0047V7.28086C10.0047 5.36416 11.1755 4.31953 12.8862 4.31953C13.7063 4.31953 14.4096 4.38076 14.6155 4.40859V6.41064H14.6137Z" fill="white"/>
                          </svg>
                    </a>
                    <a href="">
                        <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19" fill="none">
                            <path d="M9.50001 7.02686C8.1381 7.02686 7.02667 8.13828 7.02667 9.5002C7.02667 10.8621 8.1381 11.9735 9.50001 11.9735C10.8619 11.9735 11.9734 10.8621 11.9734 9.5002C11.9734 8.13828 10.8619 7.02686 9.50001 7.02686Z" fill="white"/>
                            <path d="M16.9182 9.49987C16.9182 8.47565 16.9274 7.46071 16.8699 6.43834C16.8124 5.25084 16.5415 4.19694 15.6731 3.32858C14.8029 2.45836 13.7509 2.18932 12.5634 2.1318C11.5392 2.07428 10.5242 2.08356 9.50185 2.08356C8.47763 2.08356 7.46269 2.07428 6.44033 2.1318C5.25283 2.18932 4.19892 2.46022 3.33056 3.32858C2.46035 4.19879 2.19131 5.25084 2.13379 6.43834C2.07627 7.46256 2.08554 8.4775 2.08554 9.49987C2.08554 10.5222 2.07627 11.539 2.13379 12.5614C2.19131 13.7489 2.4622 14.8028 3.33056 15.6712C4.20078 16.5414 5.25283 16.8104 6.44033 16.8679C7.46455 16.9255 8.47949 16.9162 9.50185 16.9162C10.5261 16.9162 11.541 16.9255 12.5634 16.8679C13.7509 16.8104 14.8048 16.5395 15.6731 15.6712C16.5434 14.8009 16.8124 13.7489 16.8699 12.5614C16.9293 11.539 16.9182 10.5241 16.9182 9.49987ZM9.5 13.3054C7.39404 13.3054 5.69443 11.6058 5.69443 9.49987C5.69443 7.39391 7.39404 5.6943 9.5 5.6943C11.606 5.6943 13.3056 7.39391 13.3056 9.49987C13.3056 11.6058 11.606 13.3054 9.5 13.3054ZM13.4614 6.42721C12.9697 6.42721 12.5727 6.03014 12.5727 5.53844C12.5727 5.04674 12.9697 4.64967 13.4614 4.64967C13.9531 4.64967 14.3502 5.04674 14.3502 5.53844C14.3483 6.032 13.9531 6.42721 13.4614 6.42721Z" fill="white"/>
                          </svg>
                    </a>
                    <a href="">
                        <svg xmlns="http://www.w3.org/2000/svg" width="19" height="20" viewBox="0 0 19 20" fill="none">
                            <path d="M17.4655 5.754C17.2744 5.0039 16.7104 4.41315 15.996 4.21299C14.699 3.84766 9.5 3.84766 9.5 3.84766C9.5 3.84766 4.30098 3.84766 3.004 4.21105C2.28779 4.4112 1.72559 5.00195 1.53447 5.75205C1.1875 7.11234 1.1875 9.9495 1.1875 9.9495C1.1875 9.9495 1.1875 12.7867 1.53447 14.145C1.72559 14.8951 2.28965 15.4859 3.004 15.686C4.30098 16.0513 9.5 16.0513 9.5 16.0513C9.5 16.0513 14.699 16.0513 15.996 15.686C16.7122 15.4859 17.2744 14.8951 17.4655 14.145C17.8125 12.7867 17.8125 9.9495 17.8125 9.9495C17.8125 9.9495 17.8125 7.11234 17.4655 5.754ZM7.84863 12.5535V7.34553L12.1533 9.93007L7.84863 12.5535Z" fill="white"/>
                          </svg>
                    </a>
                </div>
            </div>
            <div class="bg">
                <img src="./images/fbg.png" alt="">
            </div>
        </div>

    </div>
    <script src="./js/jquery-1.11.0.min.js"></script>
    <script src="./js/wow.min.js"></script>
    <script src="./js/swiper.js"></script>
    <script src="./js/gsap.min.js"></script>
    <script src="./js/ScrollTrigger.min.js"></script>
    <script src="./js/SplitText.min.js"></script>
    <script src="./js/lenis.min.js"></script>
    <script src="./js/aos.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/countUp.js"></script>

    <script>
        $('.section2 .item').click(function() {
            const $flex = $(this).closest('.section2');
            const $matter = $(this).closest('.matter');
            $matter.find('.item').removeClass('on');
            $(this).addClass('on');
            const indices = $flex.find('.matter').map(function() {
                return $(this).find('.item').index($(this).find('.item.on'));
            }).get();
            const result = indices.join('_');
            console.log(result);

            $('.home .section2 .content .img img').removeClass('on')
            setTimeout(function () {
                $('.home .section2 .content .img img').addClass('on')
            },10)
        });


        new WOW().init();

        var scroll;

        lenis.on('scroll', (e) => {
            scroll = e.actualScroll
            common_x_scroll(scroll, $('.section0'), $('.section0').position().top)

            var section0 = $('.section0')
            var section0Top = section0.position().top
            var i_length = $('.section0 .wrap_x .item').length
            var index = Math.floor((scrollTop - section0Top) / (($('.section0').height() - clientHeight) / i_length))
            index <= 0 ? index = 0 : index
            index >= (i_length-1) ? index = (i_length-1) : index

            $('.section0 .wrap_x .item').removeClass('on').eq(index).addClass('on')


        })

        $('.home .section0 .fix .wrap .button .circle').click(function () {
            var index = $(this).index()
            var index2 = $('.section0 .wrap_x .item.on').index()+1
            if (index === 0) {
                lenis.scrollTo($('.section0').position().top)
                return
            }else {
                index2++
            }
            var h = $('.section0').height() - clientHeight
            var l = $('.section0 .wrap_x .item').length
            var top = $('.section0').position().top
            var nb = h / l
            var scroll = top + (index2*nb)
            if (index2 <= 12 && index2 >= 0) {
                lenis.scrollTo(Math.floor(scroll) + 10)
            }
        })
        let scrollX, scrollXHeight, Horizontal,clientHeight = document.documentElement.clientHeight

        function common_x(x, all, allW) {
            scrollX = x
            Horizontal = all
            var wid = $(allW).width()

            scrollXHeight = (scrollX.clientWidth - wid) + clientHeight
            Horizontal.style.height = scrollXHeight + 'px'

            window.addEventListener('resize', function () {
                scrollXHeight = (scrollX.clientWidth - wid) + clientHeight
                Horizontal.style.height = scrollXHeight + 'px'
            });
        }

        common_x(document.querySelector('.section0 .fix .wrap .wrap_x'), document.documentElement.querySelector('.section0'), $('.section0 .fix .wrap'))


        function common_x_scroll(scrollTop, all, start) {
            var x_end = $(all).next().position().top - clientHeight
            if (scrollTop > start && scrollTop < x_end) {
                $(scrollX).css('transform', 'translate3d(-' + (scrollTop - start) + 'px, 0px, 0px)')
            } else if (scrollTop <= start) {
                $(scrollX).css('transform', 'translate3d(0px, 0px, 0px)')
            }
            if (scrollTop >= x_end) {
                $(scrollX).css('transform', 'translate3d(-' + (scrollXHeight - clientHeight) + 'px, 0px, 0px)')
            }
        }


        var mySwiper_ = new Swiper('.banner .swiper-container', {
            speed: 800,
            loop: true,
        })


        new Swiper('.conSwiper', {
            speed: 1000,
            spaceBetween: 50,
            navigation: {
                nextEl: '.home .section2 .content .con_jump .button img:last-child',
                prevEl: '.home .section2 .content .con_jump .button img:first-child',
            },
            allowTouchMove: false,
        })


        $('.keySwiper').each(function (i,e) {
            new Swiper($(e)[0], {
                speed: 1000,
                spaceBetween: 33,
                slidesPerView: 5,
                pagination: {
                    el: $(e).siblings(".swiper-pagination")[0],
                    type: "progressbar",
                },
                loop: true,
                breakpoints: {
                    100: {
                        spaceBetween: 20,
                        slidesPerView: 2,
                    },
                    1024: {
                        spaceBetween: 33,
                        slidesPerView: 5,
                    },
                }
            })
        })

        $('.section4 .content .play').click(function () {
            let url = $(this).attr('data-url');
            console.log(url)
            $('#video').attr('src', url)
            $('.dialog').css({'display': 'flex'})
            document.getElementById("video").play();
        })
        $('.dialog .close').click(function () {
            $('.dialog').css({'display': 'none'})
            document.getElementById("video").pause();
        })

        new Swiper('.techSwiper', {
            speed: 1000,
            spaceBetween: 50,
            loop: true,
            navigation: {
                nextEl: '.home .section6 .content .next',
            },
        })

        $('.section3 .content .keySwiper .swiper-wrapper .swiper-slide .text .more').click(function (e) {
            e.preventDefault();
            $('.fixed_alert').addClass('on')
        })

        $('.home .fixed_alert .content .l .move .back').click(function () {
            $('.fixed_alert').removeClass('on')
        })
    </script>
    <script>
        function loadImages(container, totalImages) {
            var index_img = '';
            for (let i = 1; i < totalImages; i++) {
                index_img += '<img src="images/pro/' + container.data('index') + '/' + i + '.webp" alt="">';
                // index_img += '<img src="images/pro/3' + '/0' + i + '.png" alt="">';
            }
            container.append(index_img);
            container.find('img').first().addClass('on'); // 默认给第一个 img 添加类 on
        }

        function updateImages(container, scrollTop) {
            var start = $('.section0').position().top + container.position().left - (document.documentElement.clientWidth / 1.7);
            var end = start + container.height();
            var imgElements = container.find('img');


            if (scrollTop >= start && scrollTop <= end) {
                var currentIndex = Math.floor((scrollTop - start) / (end - start) * imgElements.length);
                imgElements.removeClass('on');
                imgElements.eq(currentIndex).addClass('on');
            } else {
                imgElements.removeClass('on');
            }

            if (scrollTop >= end) {
                imgElements.last().addClass('on');
            } else if (scrollTop < start) {
                imgElements.first().addClass('on');
            }
        }

        var isTop=0
        var isTop_2=0
        window.addEventListener('scroll', function () {
            var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
            if(scrollTop>=($('.s4_0').offset().top-500)){
                var video_0 = document.getElementById('video_0');
                if(isTop==0){
                    video_0.play();
                    isTop=1
                }
                setTimeout(() => {
                    $('.s4_0 .play').css({'opacity':'1'})
                    video_0.pause();
                }, 20000);
            }

            if(scrollTop>=($('.s4_1').offset().top-500)){
                var video_1 = document.getElementById('video_1');
                if(isTop_2==0){
                    video_1.play();
                    isTop_2=1
                }
                setTimeout(() => {
                    $('.s4_1 .play').css({'opacity':'1'})
                    video_1.pause();
                }, 20000);
            }

            $('.section0 .r').each(function () {
                var container = $(this);
                updateImages(container, scrollTop);
            });
        });

        // 初始化每个 r 的图片
        $(document).ready(function() {
            $('.section0 .r').each(function(index) {
                var container = $(this);
                container.data('index', index + 1); // 给每个 r 赋一个数据属性，以便加载对应的图片
                loadImages(container, parseInt(container.data('total-images'))); // 一次性加载所有图片
            });
        });
    </script>

</body>

</html>